home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: mrdavc@aol.com (Mrdavc)
- Newsgroups: comp.lang.c++
- Subject: Copying Variables ???
- Date: 28 Feb 1996 02:02:17 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4h0ulp$i7g@newsbf02.news.aol.com>
- Reply-To: mrdavc@aol.com (Mrdavc)
-
- Why doesn't the following replacement work? and how should the code be
- corrected?
-
- works:
- fputc(fgetc(in), out);
-
- doesn't work:
- char2trans = fgetc(in);
- newchar = char2trans;
- fputc(newchar, out);
-
- char2trans and newchar are defined as unsigned int which is what fgetc(in)
- returns.
-